CC = gcc
CCFLAGS = -Wall -Wno-packed-bitfield-compat -Wpadded -std=gnu11 -DX86_64

ldtexp: ldt.c
	$(CC) $(CCFLAGS) -o $@ $?
	$(CC) $(CCFLAGS) $? -S

run: ldtexp
	./ldtexp

.PHONY: clean
clean:
	-rm -f *.o
	-rm -f ldtexp
	-rm -f ldt.s

